<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<f:view>


		<h:form>

			<fieldset>
				<legend style="margin-left: 0px;">Cadastro de Disciplina</legend>

				<div id="cads">

					<h:panelGrid columns="2">

						<h:outputText value="#{msgs['disciplina.nomeMedausente']}" />

						<h:inputText id="nome" value="#{DisciplinaBean.dis.nome}"
							required="true" requiredMessage="#{}" style="width:200px;" />

						<h:outputText value="Qtd de créditos" />

						<h:inputText id="credAusente"
							value="#{DisciplinaBean.dis.quantidade_creditos}" required="true"
							requiredMessage="#{msgs['disciplina.qtdCreditosAusente']}"
							style="width:200px;" />

						<h:outputText value="Qtd de vagas" />

						<h:inputText id="vagas"
							value="#{DisciplinaBean.dis.numeroDeVagas}" required="true"
							requiredMessage="#{msgs['disciplina.qtdCreditosAusente']}"
							style="width:200px;" />
				

					<h:outputText value="Código do Curso" />

					<h:inputText id="codigocurso" value="#{DisciplinaBean.dis.beaaaaaaaaaaaaaaaaaaaaaaaan}"
						required="true"
						requiredMessage="#{msgs['curso.Código']}"
						style="width:200px;" />
						
					</h:panelGrid>

					<h:commandButton type="submit" value="Cadastrar"
						action="#{DisciplinaBean.CadastrarDisciplina}" styleClass="botoes"
						style="margin-left: 0px;" />

					<h:commandButton value="Cancelar" action="cancelar"
						immediate="true" styleClass="botoes" />

					<br>
					<hr>

				</div>









				<div="Avisos">
					<fieldset>
						<legend style="margin-left: 0px;">Avisos</legend>

						<h:messages style="color:red;"></h:messages>
					</fieldset>
				</div>



			</fieldset>
		</h:form>


	</f:view>
</body>
</html>